import { Module } from '@nestjs/common';
import { UserMessageService } from './user-message.service';
import { UserMessageController } from './user-message.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserMessage } from 'src/entities/userMessage.entity';
import { Message } from 'src/entities/message.entity';
import { Friend } from 'src/entities/friend.entity';
import { UserService } from 'src/user/user.service';
import { User } from 'src/entities/user.entity';
import { SocketService } from 'src/socket/socket.service';
import { FriendService } from 'src/friend/friend.service';
import { FriendApplication } from 'src/entities/friendApplication.entity';
import { FriendApplicationService } from 'src/friend-application/friend-application.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Message,
      UserMessage,
      Friend,
      User,
      FriendApplication,
    ]),
  ],
  controllers: [UserMessageController],
  providers: [
    UserMessageService,
    UserService,
    SocketService,
    FriendService,
    FriendApplicationService,
  ],
})
export class UserMessageModule {}
